<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>The SolrParams class</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="solrgenericresponse.destruct.html">« SolrGenericResponse::__destruct</a></li>
      <li style="float: right;"><a href="solrparams.add.html">SolrParams::add »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.solr.html">Solr</a></li>
    <li>The SolrParams class</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="class.solrparams" class="reference">

 <h1 class="title">The SolrParams class</h1>
 

 <div class="partintro"><p class="verinfo">(PECL solr &gt;= 0.9.2)</p>


  <div class="section" id="solrparams.intro">
   <h2 class="title">简介</h2>
   <p class="para">
    Represents a collection of name-value pairs sent to the Solr server during a request.
   </p>
  </div>


  <div class="section" id="solrparams.synopsis">
   <h2 class="title">类摘要</h2>


   <div class="classsynopsis">
    <div class="ooclass"></div>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <span class="modifier">abstract</span>
      <span class="modifier">class</span> <strong class="classname">SolrParams</strong>
     </span>
     
     <span class="oointerface"><span class="modifier">implements</span> 
       <a href="class.serializable.html" class="interfacename">Serializable</a></span> {</div>


    
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 方法 */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">final</span> <span class="modifier">public</span> <span class="methodname"><a href="solrparams.add.html" class="methodname">add</a></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span>, <span class="methodparam"><span class="type">string</span> <code class="parameter">$value</code></span>): <span class="type"><a href="class.solrparams.html" class="type SolrParams">SolrParams</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="solrparams.addparam.html" class="methodname">addParam</a></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span>, <span class="methodparam"><span class="type">string</span> <code class="parameter">$value</code></span>): <span class="type"><a href="class.solrparams.html" class="type SolrParams">SolrParams</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">final</span> <span class="modifier">public</span> <span class="methodname"><a href="solrparams.get.html" class="methodname">get</a></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$param_name</code></span>): <span class="type"><a href="language.types.declarations.html#language.types.declarations.mixed" class="type mixed">mixed</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">final</span> <span class="modifier">public</span> <span class="methodname"><a href="solrparams.getparam.html" class="methodname">getParam</a></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$param_name</code><span class="initializer"> = ?</span></span>): <span class="type"><a href="language.types.declarations.html#language.types.declarations.mixed" class="type mixed">mixed</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">final</span> <span class="modifier">public</span> <span class="methodname"><a href="solrparams.getparams.html" class="methodname">getParams</a></span>(): <span class="type">array</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">final</span> <span class="modifier">public</span> <span class="methodname"><a href="solrparams.getpreparedparams.html" class="methodname">getPreparedParams</a></span>(): <span class="type">array</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">final</span> <span class="modifier">public</span> <span class="methodname"><a href="solrparams.serialize.html" class="methodname">serialize</a></span>(): <span class="type">string</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">final</span> <span class="modifier">public</span> <span class="methodname"><a href="solrparams.set.html" class="methodname">set</a></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span>, <span class="methodparam"><span class="type">string</span> <code class="parameter">$value</code></span>): <span class="type"><span class="type void">void</span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="solrparams.setparam.html" class="methodname">setParam</a></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span>, <span class="methodparam"><span class="type">string</span> <code class="parameter">$value</code></span>): <span class="type"><a href="class.solrparams.html" class="type SolrParams">SolrParams</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">final</span> <span class="modifier">public</span> <span class="methodname"><a href="solrparams.tostring.html" class="methodname">toString</a></span>(<span class="methodparam"><span class="type">bool</span> <code class="parameter">$url_encode</code><span class="initializer"> = <strong><code>false</code></strong></span></span>): <span class="type">string</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">final</span> <span class="modifier">public</span> <span class="methodname"><a href="solrparams.unserialize.html" class="methodname">unserialize</a></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$serialized</code></span>): <span class="type"><span class="type void">void</span></span></div>

   }</div>


  </div>

 </div>

 














































































<h2>目录</h2><ul class="chunklist chunklist_reference"><li><a href="solrparams.add.html">SolrParams::add</a> — 别名 SolrParams::addParam</li><li><a href="solrparams.addparam.html">SolrParams::addParam</a> — Adds a parameter to the object</li><li><a href="solrparams.get.html">SolrParams::get</a> — 别名 SolrParams::getParam</li><li><a href="solrparams.getparam.html">SolrParams::getParam</a> — Returns a parameter value</li><li><a href="solrparams.getparams.html">SolrParams::getParams</a> — Returns an array of non URL-encoded parameters</li><li><a href="solrparams.getpreparedparams.html">SolrParams::getPreparedParams</a> — Returns an array of URL-encoded parameters</li><li><a href="solrparams.serialize.html">SolrParams::serialize</a> — Used for custom serialization</li><li><a href="solrparams.set.html">SolrParams::set</a> — 别名 SolrParams::setParam</li><li><a href="solrparams.setparam.html">SolrParams::setParam</a> — Sets the parameter to the specified value</li><li><a href="solrparams.tostring.html">SolrParams::toString</a> — Returns all the name-value pair parameters in the object</li><li><a href="solrparams.unserialize.html">SolrParams::unserialize</a> — Used for custom serialization</li></ul>
</div>
</div></div></body></html>